from django.urls import path
from rest_framework.routers import SimpleRouter

from goods import views

urlpatterns = [
    path('allcate/', views.CateView.as_view()),
    path('somegoods/', views.GetCateView.as_view()),
    path('kindcate/', views.KindView.as_view()),
    path('childcate/', views.ChildCate.as_view()),
    path('list/', views.GoodsListView.as_view()),
    path('getgoods/', views.GetGoodsView.as_view()),
    path('assess/', views.AssessView.as_view()),
]

router = SimpleRouter()
router.register('origin', views.OriginView)
urlpatterns += router.urls
